package com.zzyl.controller;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.entity.NursingProjectPagePram;
import com.zzyl.service.NursingPlanService;
import com.zzyl.vo.NursingPlanVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.zzyl.base.ResponseResult.success;

/**
 * @Description NursingPlanController
 * @Author Bafeii7
 * @Date 2025-05-09 21:01
 */
@RestController
@RequestMapping("/nursing")
@Api(tags = "护理计划管理相关接口")
public class NursingPlanController {
    @Autowired
    private NursingPlanService nursingPlanService;

    @GetMapping("/plan/search")
    public ResponseResult searchByPage(NursingProjectPagePram nursingProjectPagePram){
        PageResponse<NursingPlanVo> nsv =  nursingPlanService.listByPage(nursingProjectPagePram);
        return success(nsv);
    }


}
